<?php
/**
 * Created by PhpStorm.
 * User: kcswag
 * Date: 12/9/17
 * Time: 3:47 PM
 */

namespace AppBundle\Libs;

use AppBundle\Entity\Borrowers;

/**
 * 借款人放款
 * Class Loan
 * @package AppBundle\Libs
 */
class Loan
{
    private $payment;


    public function __construct(Payment $payment)
    {
        $this->payment = $payment;
    }

    /**
     * 放款
     */
    public function makeLoans(Borrowers $borrower, $manual = false){
        $this->payment->pay($borrower);
    }

    public function getPayment(){
        return $this->payment;
    }





}